//
//  AppDelegate.m
//  FirstIOSApp
//
//  Created by China Dragon on 2023/7/19.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


#pragma mark 在应用程序加载完毕子后调用
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    NSLog(@"调用了 didFinishLaunchingWithOptions 加载完毕");
    return YES;
}


#pragma mark - UISceneSession lifecycle


- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
    // Called when a new scene session is being created.
    // Use this method to select a configuration to create the new scene with.
    NSLog(@"调用了 configurationForConnectingSceneSession");
    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
}


- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
    // Called when the user discards a scene session.
    // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
    // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
    NSLog(@"调用了 didDiscardSceneSessions");
}
#pragma mark 应用程序进入后台的时候调用
-(void)applicationDidEnterBackground:(UIApplication *)application{
    NSLog(@"调用了 applicationDidEnterBackground");
}

#pragma mark 应用程序进入前台的时候调用
-(void)applicationWillEnterForeground:(UIApplication *)application{
    NSLog(@"调用了 applicationWillEnterForeground");
}

#pragma mark 应用程序 获取焦点的时候调用
- (void)applicationDidBecomeActive:(UIApplication *)application{
    NSLog(@"调用了 applicationDidBecomeActive");
}

#pragma mark 应用程序失去焦点的时候调用
- (void)applicationWillResignActive:(UIApplication *)application{
    NSLog(@"调用了 applicationWillResignActive");
}

#pragma mark 应用程序在某种情况被终结的时候调用
- (void)applicationWillTerminate:(UIApplication *)application{
    NSLog(@"调用了 applicationWillTerminate");
}


@end
